/*
 * SysLog.java
 *
 * 功  能：
 * 类  名：Logger
 * 版权所有：中兴（沈阳）金融科技有限公司
 *
 *   版本        变更日期             作者      变更内容
 * ────────────────────────────
 *   V1.0        2016年10月24日    dong.jun      新建
*/
package cn.com.zte.ngbc.sys.logging;

/*
 * 描述：
 * @author dong.jun
 * @version 1.0
 */
public class SysLog {
	private final LogManager log;
	private static String CLASS_NAME = SysLog.class.getName();

	protected SysLog(LogManager log) {
		this.log = log;
		this.log.FQCN = CLASS_NAME;
	}

	public void debug(String message, Throwable t, Object... args) {
		this.log.debug(log.format(message, args), t);
	}

	public void debug(String message, Object... args) {
		this.log.debug(log.format(message, args));
	}

	public void debug(Object message) {
		this.log.debug(message);
	}

	public void sql(String message, Object... args) {
		this.log.debug(log.format(message, args));
	}

	public void sql(Object message) {
		this.log.debug(message);
	}

	public void error(String message, Throwable t, Object... args) {
		this.log.error(log.format(message, args), t);

	}

	public void error(String message, Object... args) {
		this.log.error(log.format(message, args));
	}

	public void error(Object message) {

		this.log.error(message);

	}

	public void info(String message, Throwable t, Object... args) {
		this.log.info(log.format(message, args), t);
	}

	public void info(String message, Object... args) {
		this.log.info(log.format(message, args));

	}

	public void info(Object message) {
		this.log.info(message);
	}

	public void warn(String message, Throwable t, Object... args) {
		this.log.warn(log.format(message, args), t);

	}

	public void warn(String message, Object... args) {
		this.log.warn(log.format(message, args));
	}

	public void warn(Object message) {
		this.log.warn(message);
	}

	public void fatal(String message, Throwable t, Object... args) {
		this.log.fatal(log.format(message, args), t);
	}

	public void fatal(String message, Object... args) {
		this.log.fatal(log.format(message, args));
	}

	public void fatal(Object message) {
		this.log.fatal(message);
	}

	public void profile(String message, Object... args) {

		this.log.info(log.format(message, args));

	}

	public void techMethod(String message, Object... args) {
		this.log.debug(log.format(message, args));
	}
	
	public void method(String message, Object... args) {
		this.log.debug(log.format(message, args));
	}

	public void parm(String message, Object... args) {
		this.log.debug(log.format(message, args));
	}

}
